package com.atguigu.cloud.order.client;

import com.atguigu.cloud.order.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LT
 * @create 2023-11-14-18:50
 */
@FeignClient(value = "cloud-order")
public interface OrderClient {
    @GetMapping(value = "/api/order/findById/{orderId}")
    public Order findOrderByOrderId(@PathVariable("orderId") Long orderId);
}
